import { createApp } from 'vue'
import App from './App.vue'

import '@/plugins/unocss' // 引入unocss
import 'normalize.css' // 取消浏览器默认默认样式

import { setupRouter } from '@/router' // 路由
import { setupStore } from '@/store' // 状态管理
import { setupElementPlus } from '@/plugins/elementPlus' // 引入element-plus
import { setupI18n } from '@/plugins/vueI18n' // i18

const app = createApp(App)

await setupI18n(app)

setupElementPlus(app)

setupRouter(app)

setupStore(app)

app.mount('#app')
